package com.my.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.my.entity.AttendanceLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttendanceLogMapper extends BaseMapper<AttendanceLog> {

    IPage<AttendanceLog> getList(IPage<AttendanceLog> page, @Param("log") AttendanceLog log);

    AttendanceLog getByUserAttendCreate(@Param("userId") Long userId, @Param("curriculumId") Long curriculumId, String date);

    List<AttendanceLog> getApiList(@Param("userId") Long userId,@Param("userType") Integer userType, @Param("classId") Long classId);

}
